<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8"/>
	<title>文章内容查看</title>
	<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
	<link rel="stylesheet" th:href="@{/css/article-view.css}">
</head>
<body class="bg-light">
<div class="container mt-0">
	<h1 class="text-center mb-2">文章内容查看</h1>

	<form action="#" th:if="${article!=null}" th:object="${article}" method="POST" class="mb-4">
		<div class="form-group mb-3">
			<label for="title">标题</label>
			<input type="text" th:field="*{title}" placeholder="标题" class="form-control" id="title" readonly>
		</div>

		<div class="form-group mb-3">
			<label for="articletype">文章类型</label>
			<input type="text" th:field="*{articletype.type}" placeholder="文章类型" class="form-control" id="articletype" readonly>
		</div>

		<div class="form-group mb-3">
			<label for="content">文章内容</label>
			<textarea th:field="*{content}" rows="10" class="form-control" id="content" placeholder="文章内容" readonly></textarea>
		</div>
	</form>
	<hr>
	<a th:href="@{/article/findAll}" class="btn btn-secondary">返回文章列表</a>
</div>
<footer class="footer mt-4">
	<div class="container text-center py-3">
		<p>&copy; 2024 MYBLOG. All rights reserved.</p>
	</div>
</footer>
</body>
</html>